<!DOCTYPE HTML>
<html  lang="zh" xmlns:th="http://www.thymeleaf.org">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInLeft ibox-content">
        <form class="form-horizontal m"   enctype="multipart/form-data"   method="post"  th:action="@{/dailymenu/everyday/doImport}">
			<div class="form-group">	
				<label class="col-sm-12 ">导入<b th:text="${year}" />年第<b th:text="${yearOfweek}" />周的<b th:text="${dinerType}" />
					(<b th:text="${begin}" />至<b th:text="${end}" />)

				</label><br/>
				<label class="col-sm-12 ">1.请务必按照格式，否则导入失败</label><br/>
				<label class="col-sm-12 ">2.若本周有排餐，将自动覆盖，请务必谨慎操作！</label><br/>

			</div>
			<div class="form-group">
				<div style="width: 770px;height: 200px; border: solid #c1c1c1 1px ">
					<label class="col-sm-12 " th:each=" err: ${errorList}"  th:text="'错误行号: '+${err.line}+ ' '+ ${err.errorMsg}">  </label><br/>
					<label class="col-sm-12 " th:if="${errorList.size() ==0 }" >
						恭喜你，导入成功！
					<script >parent.$.table.refresh();</script>
					</label><br/>

				</div>

            </div>


			<div class="form-group">

				<div class="form-control-static col-sm-offset-9">

					<button onclick="parent.$.table.refresh();$.modal.close();"  class="btn " type="button">取消</button>
					<a    th:href="${href}" class="btn btn-primary">重新导入</a>
				</div>
			</div>


</form>
	</div>
    <div th:include="include::footer"></div>
    <script th:src="@{/ajax/libs/select/select2.js}"></script>
    <script type="text/javascript">


	</script>
</body>
</html>
